package question4;

public class Manager extends Worker implements getMoney{
    public Manager() {
    }

    public Manager(String name, int salary) {
        super(name, salary);
    }

    @Override
    public void getMoney(Company company) {
        System.out.println("给张小强发工资"+super.getSalary()+"元,公司剩余："+(company.getMoney()-super.getSalary())+"元");
        company.setMoney(company.getMoney()-super.getSalary());
    }
}
